import request from '@/utils/request'

// 查询充值缴费记录列表
export function listRecords(query) {
  return request({
    url: '/wsd_refund/list',
    method: 'get',
    params: query
  })
}

// 查询充值缴费记录详细
export function getRecords(configId) {
  return request({
    url: '/wsd_refund/' + configId,
    method: 'get'
  })
}
// 新增充值缴费记录
export function addRecords(data) {
  return request({
    url: '/wsd_refund',
    method: 'post',
    data: data
  })
}

// 修改充值缴费记录
export function updateRecords(data) {
  return request({
    url: '/wsd_refund/records',
    method: 'put',
    data: data
  })
}

// 删除充值缴费记录
export function delRecords(paymentId) {
  return request({
    url: '/wsd_refund/' + paymentId,
    method: 'delete'
  })
}
